package com.acme.javaschool.intense.sems.sem2concurrency;

public class Util {

    public static String makeString(int... a) {
        StringBuilder s = new StringBuilder();
        for (int i = 0; i < a.length; i++) {
            s.append(a[i] + ", ");
            if ((i > 0) && (i % 20 == 0)) {
                s.append("\n");
            }
        }
        return s.toString();
    }

    public static String makeString(byte... a) {
        StringBuilder s = new StringBuilder();
        for (int i = 0; i < a.length; i++) {
            s.append(a[i] + ", ");
            if ((i > 0) && (i % 20 == 0)) {
                s.append("\n");
            }
        }
        return s.toString();
    }

}
